package  com.pcbly.web.business.calendar;

/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.persistence.calendar.CalendarRemarkDao;
import com.pcbly.web.bean.calendar.CalendarRemarkBean;
import com.pcbly.web.business.BaseServiceImp;
import com.pcbly.web.components.hibernate.support.Page;

 
public class CalendarRemarkServiceImp extends BaseServiceImp<CalendarRemarkBean> implements CalendarRemarkService {
	 public CalendarRemarkServiceImp() {
		super();
		// TODO Auto-generated constructor stub
	}
	private CalendarRemarkDao calendarRemarkDao;
	
	public void setCalendarRemarkDao(CalendarRemarkDao calendarRemarkDao) {
		this.calendarRemarkDao = calendarRemarkDao;
	}
	
	@Override
	public CalendarRemarkBean getCalendarRemarkBeanById(String id) throws Exception {
		// TODO Auto-generated method stub
		return calendarRemarkDao.get(CalendarRemarkBean.class,id);
	}
	
	@Override
	public void removeCalendarRemarkBeanById(String id) throws Exception{
		calendarRemarkDao.removeCalendarRemarkBeanById(id);
	}
	
	@Override
	public void removeCalendarRemarkBeanByIds(String ids) throws Exception{
		calendarRemarkDao.removeCalendarRemarkBeanByIds(ids);
	}
	
	
	@Override
	public CalendarRemarkBean saveCalendarRemarkBean(CalendarRemarkBean calendar) throws Exception{
		return calendarRemarkDao.saveCalendarRemarkBean(calendar);
	}
	
	@Override
	public CalendarRemarkBean updateCalendarRemarkBean(CalendarRemarkBean calendar) throws Exception{
		calendarRemarkDao.saveObject( calendar);
		return calendar;
	}
	public Page<CalendarRemarkBean>  findCalendarRemarkBeanByCond(CalendarRemarkBean bean,
			Page<CalendarRemarkBean> page, String orderByName, boolean asc)
			throws Exception{
		return calendarRemarkDao.findCalendarRemarkBeanByCond(
				bean, page, orderByName, asc);
	}
}
